package com.wangzhen.jvm.classloader;

import java.util.ArrayList;
import java.util.List;

public class ClassLoaderTest {

    public static void main(String[] args) {
        ClassLoaderTest test = new ClassLoaderTest();
        System.out.println(test.getClass().getClassLoader().getClass());


        ArrayList list = new ArrayList<>();
        Class<? extends ArrayList> listClass = list.getClass();
        System.out.println(listClass.getClassLoader().getClass());

        System.out.println(Object.class.getClassLoader().getClass());
    }
}
